<template>
	<view class="content">
		<view class="module">
			<text class="title">物流公司</text><text class="start">*</text>
			<view class="box">
				<picker @change="bindPickerChange" :value="index" :range="logisticsCompany">
					<view class="logisticscompanyview">
						<text style="margin-left: 20rpx;font-size: 30rpx;">{{logisticsCompany[index]}}</text>
						<image class="row"></image>
					</view>
				</picker>
			</view>
		</view>
		<view class="module">
			<text class="title">物流单号</text><text class="start">*</text>
			<view class="box"><input class="input" v-model="orderNum" placeholder="请填写物流单号" placeholder-class="placeholder" /></view>
		</view>
		<view class="module">
			<text class="title">联系电话</text><text class="start">*</text>
			<view class="box"><input class="input" v-model="phoneNum" type="number" placeholder="请填写您的联系电话" placeholder-class="placeholder" /></view>
		</view>
		<view class="submit" @click="submit">提交物流信息</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				orderNum: '',
				phoneNum: '',
				index: 0,
				logisticsCompany: [
					'请选择物流公司', '韵达快递', '顺丰快递', '圆通快递', '天天快递'
				]
			}
		},
		methods: {
			bindPickerChange(e) {
				console.log('picker发送选择改变，携带值为', e.target.value)
				this.index = e.target.value
			},
			submit() {}
		},
		onReady() {
			uni.setNavigationBarColor({
				frontColor: '#000000',
				backgroundColor: '#ffffff'
			})
		},
	}
</script>

<style scoped>
	.content {
		width: 100%;
		height: 100%;
		padding: 0 24rpx;
		box-sizing: border-box;
	}

	.module {
		padding-top: 40rpx;
	}

	.box {
		margin-top: 19rpx;
		height: 100rpx;
		line-height: 100rpx;
		background-color: #ffffff;
		border-radius: 4rpx;
		border: solid 1rpx #efefef;

	}

	.logisticscompanyview {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.title {
		font-size: 30rpx;
		line-height: 36rpx;
		letter-spacing: 1rpx;
		color: #333333;
	}

	.row {
		width: 16rpx;
		height: 30rpx;
		background-color: #999999;
		margin-right: 20rpx;
	}

	.input {
		height: 100rpx;
		line-height: 100rpx;
		padding-left: 20rpx;
		font-size: 30rpx;
	}

	.placeholder {
		font-size: 26rpx;
		line-height: 100rpx;
		letter-spacing: 1rpx;
		color: #999999;
	}

	.start {
		font-size: 30rpx;
		letter-spacing: 1rpx;
		color: #f34930;
	}

	.submit {
		width: 100%;
		height: 100rpx;
		background-color: #f34930;
		border-radius: 8rpx;
		color: #FFFFFF;
		font-size: 30rpx;
		line-height: 100rpx;
		letter-spacing: 1rpx;
		text-align: center;
		margin-top: 360rpx;

	}
</style>
